home *** CD-ROM | disk | FTP | other *** search
- var pNum = Number(this._name.slice(6,-3));
- this.setPos = function(ty, tdir)
- {
- var _loc1_ = this;
- _loc1_._x = pX + 38;
- _loc1_._y = pY - ty;
- if(_loc1_._y < -300 && tdir > 0)
- {
- if(pNum < 3)
- {
- pNum += 5;
- _loc1_.resetMe();
- }
- }
- else if(_loc1_._y > 500 && tdir < 0)
- {
- if(pNum > 4)
- {
- pNum -= 5;
- _loc1_.resetMe();
- }
- }
- };
- this.setUp = function(x, y, frame)
- {
- var _loc1_ = this;
- _loc1_.pX = x * 16;
- _loc1_.pY = y * 16;
- _loc1_.gotoAndStop(frame);
- };
- this.resetMe = function()
- {
- var _loc1_ = this;
- switch(pNum)
- {
- case 0:
- _loc1_.setUp(24,7,5);
- break;
- case 1:
- _loc1_.setUp(0,33,12);
- break;
- case 2:
- _loc1_.setUp(0,56,7);
- break;
- case 3:
- _loc1_.setUp(29,83,11);
- break;
- case 4:
- _loc1_.setUp(0,109,13);
- break;
- case 5:
- _loc1_.setUp(34,110,10);
- break;
- case 6:
- _loc1_.setUp(0,125,8);
- }
- };
- this.resetMe();
- stop();
-